﻿using NUnit.Framework;
using ProjetoComperio.BusinessLogicLayer;
using ProjetoComperio.DataLayer.Infra;

namespace ProjetoComperio.Test.BusinessLogicLayer
{
    [TestFixture]
    public class CommentBLLTest
    {
        CommentBLL commentBLL;

        [TestFixtureSetUp]
        public void TestFixtureSetUp()
        {
            commentBLL = new CommentBLL();
        }

        [Test]
        public void TestValidCreate()
        {
            DataContextFactory.CreateDataBase();  



            //var comment = new Comment
            //{
            //    Description = "Teste descrição",
            //    CreatedDate = DateTime.Now,
            //    Email = "TEste@teste.com",
            //    UserName = "userNameTeste",
            //    SubjectId = 1
            //};

            //commentBLL.Create(comment);
            //Assert.IsNotNull(commentBLL.RetrieveComment(comment.CommentID));
        }
    }
}
